<?php

namespace apiend\modules\user\models;

use Yii;

/**
 * 举报内容模型
 * ContentReportForm
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class ContentReportForm extends \common\models\user\Report {

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'source_id', 'source_user_id', 'created_at', 'updated_at'], 'integer'],
            [['source', 'content'], 'required'],
            [['source'], 'string', 'max' => 50],
            [['content'], 'string', 'max' => 255],
            ['source', 'in', 'range' => ['dynamic', 'reply', 'user'], 'message' => '{attribute}不正确'],
        ];
    }

}
